<%@page import="com.bean.User"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  Object obj =session.getAttribute("user");
  User user;
  String qq="";
  if(obj!=null){
	  user= (User)obj;
	  qq= user.getQq();
  }
%>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">WeChat系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#"><%=qq%></a></li>
                <li><a href="#"  onclick="groupAdd()">添加群组</a></li>
                <li><a href="#"  onclick="friendAdd()">添加好友</a></li>
                <li><a href="#"  onclick="notice()">消息通知<span id="noticeNum" class="badge">0</span></a></li>
                <li><a href="login.jsp">退出</a></li>
            </ul>
        </div>
    </div>
</nav>
